//
//  SAMarketingListModel.h
//  saasRetail
//
//  Created by mac on 2023/8/29.
//

#import <Foundation/Foundation.h>
@class SAMarketingRulesModel;

NS_ASSUME_NONNULL_BEGIN

@interface SAMarketingListModel : NSObject

@property(nonatomic,copy) NSString *achieveType;
@property(nonatomic,copy) NSString *cycle;
@property(nonatomic,copy) NSString *discountType;
@property(nonatomic,copy) NSString *endTime;
@property(nonatomic,copy) NSString *id;
@property(nonatomic,copy) NSString *memberDiscountStacking;
@property(nonatomic,copy) NSString *name;
@property(nonatomic,copy) NSString *priceMode;
@property(nonatomic,copy) NSString *startTime;
@property(nonatomic,copy) NSString *status;
@property(nonatomic,copy) NSString *targetProductType;
@property(nonatomic,strong) NSMutableArray<NSString *> *productIds;
@property(nonatomic,strong) NSMutableArray<SAMarketingRulesModel *> *rules;

//前端记录参与活动的商品
@property(nonatomic,strong) NSMutableArray<SASalesOrderViewListModel *> *activityMarr;//参与活动的商品
@property(nonatomic,assign) double totalMoney;//原价金额
@property(nonatomic,assign) double totalDiscountMoney;//折扣金额
@property(nonatomic,assign) double maxDiscountNum;//最大满减金额
@property (nonatomic, assign) NSInteger activityTotalCount;//参与活动的件数
@property(nonatomic,assign) BOOL triggering;//是否触发活动

@end

@interface SAMarketingRulesModel : NSObject

@property(nonatomic,copy) NSString *achieveNum;
@property(nonatomic,copy) NSString *discountNum;

@end


NS_ASSUME_NONNULL_END
